.class public Llt/noframe/gpsfarmguide/states/add_delete_states/AddState;
.super Ljava/lang/Object;
.source "AddState.java"

# interfaces
.implements Llt/noframe/gpsfarmguide/states/add_delete_states/AddDeleteState;


# direct methods
.method public constructor <init>()V
    .locals 2

    .line 11
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 12
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getAddDeleteState()Llt/noframe/gpsfarmguide/states/add_delete_states/AddDeleteStatesController;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/states/add_delete_states/AddDeleteStatesController;->getButton()Landroid/widget/ImageButton;

    move-result-object v0

    const v1, 0x7f08005c

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setImageResource(I)V

    return-void
.end method


# virtual methods
.method public doAction(Lcom/google/android/gms/maps/model/Marker;)V
    .locals 1

    .line 18
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getCurrent_measuring()Llt/noframe/gpsfarmguide/models/MeasuringModel;

    move-result-object v0

    invoke-virtual {v0, p1}, Llt/noframe/gpsfarmguide/models/MeasuringModel;->insertSideMidPoints(Lcom/google/android/gms/maps/model/Marker;)V

    .line 19
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object p1

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/Data;->getAddDeleteState()Llt/noframe/gpsfarmguide/states/add_delete_states/AddDeleteStatesController;

    move-result-object p1

    new-instance v0, Llt/noframe/gpsfarmguide/states/add_delete_states/DeleteState;

    invoke-direct {v0}, Llt/noframe/gpsfarmguide/states/add_delete_states/DeleteState;-><init>()V

    invoke-virtual {p1, v0}, Llt/noframe/gpsfarmguide/states/add_delete_states/AddDeleteStatesController;->setState(Llt/noframe/gpsfarmguide/states/add_delete_states/AddDeleteState;)V

    return-void
.end method
